home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cpptutor.arc / TRUCK.HPP < prev    next >
Text File  |  1991-04-28  |  365b  |  19 lines

  1.                                   // Chapter 7 - Program 6
  2. #include "vehicle.hpp"
  3.  
  4. class truck : public vehicle {
  5.    int passenger_load;
  6.    float payload;
  7. public:
  8.    void init_truck(int how_many = 2, float max_load = 24000.0);
  9.    float efficiency(void);
  10.    int passengers(void);
  11. };
  12.  
  13.  
  14.  
  15.  
  16. // Result of execution
  17. //
  18. // (this file cannot be executed)
  19.